package com.yunhui.entity;

import org.springframework.data.annotation.Id;
/*import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;*/

import java.math.BigDecimal;

/*@Document(indexName ="traveldb",type = "route_jb")*/
public class RouteJbEs {
    @Id
    private Integer id;

    //@Field(type= FieldType.Text)
    private String origin;

    //@Field(type= FieldType.Text)
    private String destination;

   // @Field(type= FieldType.Integer)
    private Integer days;

    //@Field(type= FieldType.Integer)
    private Integer night;

    //@Field(type= FieldType.Auto)
    private BigDecimal price;

    //@Field(type= FieldType.Text,analyzer="ik_smart",searchAnalyzer="ik_smart")
    private String title;

  //  @Field(type= FieldType.Text)
    private String lightspot;

   // @Field(type= FieldType.Text)
    private String imgname1;

  //  @Field(type= FieldType.Integer)
    private Integer traveltype1;

    //@Field(type= FieldType.Integer)
    private Integer traveltype2;


    public Integer getTraveltype2() {
        return traveltype2;
    }

    public void setTraveltype2(Integer traveltype2) {
        this.traveltype2 = traveltype2;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public Integer getDays() {
        return days;
    }

    public void setDays(Integer days) {
        this.days = days;
    }

    public Integer getNight() {
        return night;
    }

    public void setNight(Integer night) {
        this.night = night;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLightspot() {
        return lightspot;
    }

    public void setLightspot(String lightspot) {
        this.lightspot = lightspot;
    }

    public String getImgname1() {
        return imgname1;
    }

    public void setImgname1(String imgname1) {
        this.imgname1 = imgname1;
    }

    public Integer getTraveltype1() {
        return traveltype1;
    }

    public void setTraveltype1(Integer traveltype1) {
        this.traveltype1 = traveltype1;
    }
}
